import { isMobile } from '@/utils'
import { useNavigate } from 'react-router-dom'
const UseClient = () => {
  const navigate = useNavigate()
  function toggleClient() {
    if (isMobile()) {
      navigate('/mobile/')
    }
  }
  return { toggleClient }
}
export default UseClient
